home *** CD-ROM | disk | FTP | other *** search
/ Univers Mac Interactif 42 / Univers Mac Interactif - Issue 42.iso / Internet / MacHTTP 2.0 / MacHTTP Software & Docs / Tutorials / Examples / HyperCard CGI demo / CGI Demo Stack / card_3946.txt < prev    next >
Encoding:
Text File  |  1994-12-19  |  1.8 KB  |  59 lines

  1. -- card: 3946 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2644
  5. -- name: croll of card field 1 to 0
  6. pass opencard
  7. end opencard
  8.  
  9.  
  10. -- part 1 (field)
  11. -- low flags: 05
  12. -- high flags: 0007
  13. -- rect: left=1 top=1 right=273 bottom=479
  14. -- title width / last selected line: 0
  15. -- icon id / first selected line: 0 / 0
  16. -- text alignment: 0
  17. -- font id: 3
  18. -- text size: 12
  19. -- style flags: 0
  20. -- line height: 16
  21. -- part name: 
  22.  
  23.  
  24. -- part 2 (button)
  25. -- low flags: 00
  26. -- high flags: 2000
  27. -- rect: left=439 top=275 right=294 bottom=478
  28. -- title width / last selected line: 0
  29. -- icon id / first selected line: 6720 / 6720
  30. -- text alignment: 1
  31. -- font id: 0
  32. -- text size: 12
  33. -- style flags: 0
  34. -- line height: 16
  35. -- part name: 
  36. ----- HyperTalk script -----
  37. on mouseUp
  38.   go card 1
  39. end mouseUp
  40.  
  41.  
  42. -- part contents for card part 1
  43. -- note: style data is present
  44. ----- text -----
  45. CGI Demo by Chuck Shotton, cshotton@oac.hsc.uth.tmc.edu
  46. This stack demonstrates how MacHTTP can pass arguments to HyperCard for processing. Specifically, this stack shows how to utilize the "CGI" (common gateway interface) AppleEvent sent by MacHTTP to applications. Edit the script of this stack and the "test_hc_form.html" file for more details.
  47.  
  48. Running the demo:
  49. 1. Place an alias to HyperCard 2.1 (or greater) in the same folder as MacHTTP. Name the alias "HyperCard.cgi".
  50.  
  51. 2. Drag this stack over the HyperCard alias and drop it.
  52.  
  53. 3. Run MacHTTP 1.3.1b8 or later. (if you want the POST method to work)
  54.  
  55. 4. Access MacHTTP from your WWW client, using the URL:
  56. http://your.address/test_hc_form.html
  57.  
  58. Helpful hints
  59. ‚Ä¢ Use the path args (stuff after the "$" in a MacHTTP URL) to distinguish between multiple forms or searches, allowing HyperCard to handle multiple forms, etc.
  60.  
  61. ‚Ä¢ Take advantage of HyperCard's "item delimiters" property to make parsing form args easier.info